<?php
/**
 * Pipahr
 *
 * @author Randy Zhao
 * @copyright 2013 pipahr.com
 */

/* controller based router */
$this->create('interview_home', '')->get()->action('PInterviewController', 'home');
$this->create('interview_verifytoken', 'verifytoken')->post()->action('PInterviewController', 'verifyToken');

$this->create('interview_interview', 'interview')->get()->action('PInterviewController', 'interview');
$this->create('interview_giveup', 'giveup')->get()->action('PInterviewController', 'giveup');
$this->create('interview_giveupconfirm', 'giveupconfirm')->post()->action('PInterviewController', 'giveupconfirm');
$this->create('interview_postinterview', 'postinterview')->post()->action('PInterviewController', 'postinterview');

$this->create('interview_testnotice', 'testnotice')->get()->action('PInterviewController', 'testnotice');
$this->create('interview_jobtest', 'jobtest')->get()->action('PInterviewController', 'jobtest');
$this->create('interview_loadmore', 'loadmore')->get()->action('PInterviewController', 'loadmore');
$this->create('interview_synctimer', 'synctimer')->get()->action('PInterviewController', 'synctimer');
$this->create('interview_postexam', 'postexam')->post()->action('PInterviewController', 'postexam');

$this->create('interview_result', 'result')->get()->action('PInterviewController', 'result');

$this->create('interview_error', 'error')->get()->action('PInterviewController', 'error');

/* persontest based router */
$this->create('persontest_home', 'persontest')->get()->action('PPersontestController', 'home');
$this->create('persontest_save', 'persontest/save')->post()->action('PPersontestController', 'save');
$this->create('persontest_success', 'persontest/success')->get()->action('PPersontestController', 'success');

